import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //实现打印正方形
        //接受用户输入的值
        Scanner sc = new Scanner(System.in);
        int ret = sc.nextInt();
        for (int i = 0; i < ret; i++) {
            for (int j = 0; j < ret; j++) {
                System.out.print("* ");
            }
            //实现换行
            System.out.println();

        }
    }
}
